Skip to content

ref: Simplify proxy handler and remove caching layer#4

Merged
cleptric merged 5 commits intomainfrom
refactor/simplify-proxy-handler
Mar 9, 2026
Merged

ref: Simplify proxy handler and remove caching layer#4
cleptric merged 5 commits intomainfrom
refactor/simplify-proxy-handler

Conversation

@cleptric
Copy link
Member

@cleptric cleptric commented Mar 9, 2026

Summary

  • Replace catch-all route with explicit route handlers for each endpoint
  • Remove in-memory cache and stale-while-error logic in favor of direct proxy pass-through
  • Add typed Context and ContentfulStatusCode imports for better type safety

Test plan

  • Verify /, /SKILL_TREE.md, /sdks, /workflows, /features routes return correct content
  • Verify /:skill/SKILL.md and /:skill/* wildcard routes work
  • Verify 502 is returned on upstream failure

🤖 Generated with Claude Code

Agent transcript: https://claudescope.sentry.dev/share/5b7dB5WQJ6ikZ7Tq0RW_lLQ4mjPrfZ3qmESX_KU8Sog

Replace catch-all route with explicit route handlers for each endpoint.
Remove in-memory cache and stale-while-error logic in favor of direct
proxy pass-through. Add typed Context and ContentfulStatusCode imports.

Co-Authored-By: Claude <noreply@anthropic.com>

Agent transcript: https://claudescope.sentry.dev/share/4rxSgfqf_8e03QyKF2z9P75vink8hZ2eN_MRVyURJa4
@vercel
Copy link

vercel bot commented Mar 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
skills-sentry-dev Ready Ready Preview, Comment Mar 9, 2026 2:12pm

Request Review

@cleptric cleptric merged commit 599a19e into main Mar 9, 2026
8 checks passed
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

if (path.startsWith('/skills/')) {
return c.redirect(path.slice('/skills'.length), 301);
}

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing route for /SKILL_TREE.md endpoint returns 404

High Severity

The /SKILL_TREE.md route that was previously handled by mapPath (which mapped both / and /SKILL_TREE.md to ${BASE}/SKILL_TREE.md) is now missing. The /:skill/* route won't match it because Hono's /:param/* pattern requires at least two path segments, and /SKILL_TREE.md is a single segment. Requests to /SKILL_TREE.md will now return 404 instead of the expected skill tree content. The PR test plan explicitly lists this route as needing verification.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant